package com.zryc.shop.ums.service.impl;

import com.zryc.shop.ums.entity.Resource;
import com.zryc.shop.ums.mapper.ResourceMapper;
import com.zryc.shop.ums.service.IResourceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 后台资源表 服务实现类
 * </p>
 *
 * @author LiYe
 * @since 2023-02-02
 */
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements IResourceService {

    @Override
    public List<Resource> listByRoleId(Long roleId) {
        return baseMapper.selectListByRoleId(roleId);
    }
}
